package com.neuedu.demo3;

import java.util.Scanner;

public class Homework07 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入成绩:");
        int score = sc.nextInt();
        switch (score) {
            case 100:
            case 99:
            case 98:
            case 97:
            case 96:
            case 95:
                System.out.println("A");//利用case穿透将90-100分这个范围设置为A
                break;
            case 94:
            case 93:
            case 92:
            case 91:
            case 90:
            case 89:
            case 88:
            case 87:
            case 86:
            case 85:
            case 84:
                System.out.println("B");//利用case穿透将80-90分这个范围设置为B
                break;
            case 83:
            case 82:
            case 81:
            case 80:
            case 79:
            case 78:
            case 77:
            case 76:
                System.out.println("C");//利用case穿透将70-80分这个范围设置为C
                break;
            case 75:
            case 74:
            case 73:
            case 72:
            case 71:
            case 70:
            case 69:
            case 68:
            case 67:
            case 66:
            case 65:
            case 64:
            case 63:
            case 62:
            case 61:
            case 60:
                System.out.println("D");//利用case穿透将60-70分这个范围设置为D
                break;
            default:
                System.out.println("E");//低于60分设置为E
                break;
        }
    }
}
